import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import Header from '../Components/Search/Header/Index';
import Loading from '../Components/Common/Loading/Index';
import List from '../Components/Search/List/Index';

class Search extends Component {
    constructor(props) {
        super(props)
        this.initState = (props) => {

        }
        this.initState(this.props);
    }

    componentWillMount() {

    }
    componentWillReceiveProps(newProps) {

    }

    render() {
        let {dispatch} = this.props;

        return (
            <div>
                <Header />
                <Loading />
                <List />
            </div>
        )
    }
    componentDidMount() {

    }

    componentDidUpdate() {
        // dispatch(action.fetchSlider());
    }
    componentWillUnmount() {

    }
}

function mapStateToProps(state) {

    const {Search} = state;

    return {Search}
}

export default connect(mapStateToProps)(Search);